package io.renren;

import io.renren.modules.gengyun.dao.PlanGatherTimeDao;
import io.renren.modules.gengyun.service.PlanGatherService;
import io.renren.modules.gengyun.service.PlanGatherTimeService;
import io.renren.modules.gengyun.service.PlanIndicatorService;
import io.renren.modules.gengyun.service.PlanService;
import io.renren.modules.gengyun.utils.ResultUtils;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.text.ParseException;
import java.util.List;
import java.util.Map;
@RunWith(SpringRunner.class)
@SpringBootTest
public class plantest {
    @Autowired
    private PlanGatherService planGatherService;
    @Autowired
    private PlanIndicatorService planIndicatorService;
    @Autowired
    private PlanGatherTimeService planGatherTimeService;

    @org.junit.Test
    public void plan() throws ParseException {
        System.out.println("plan 进入");
        List<Map<String,Object>> plan_all = planGatherService.allplan();
        Map<String,Object> resultMap = ResultUtils.getResponse(plan_all,"succeed",
                "internal error",false);
        System.out.println(resultMap);


    }


    @org.junit.Test
    public void plan2() throws ParseException {
        System.out.println("plan 进入");

        System.out.println(planIndicatorService.allList());


    }


    @org.junit.Test
    public void plan3() throws ParseException {
        System.out.println("plan 进入");



    }
}
